/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 *  ORBit-C++: C++ bindings for ORBit.
 *
 *  Copyright (C) 2000 Andreas Kloeckner
 *  Copyright (C) 2011 Oliver Kellogg
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Library General Public
 *  License as published by the Free Software Foundation; either
 *  version 2 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public
 *  License along with this library; if not, write to the Free
 *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  Author:	Andreas Kloeckner <ak@ixion.net>
 *
 *  Purpose:	IDL compiler type representation
 *          	Parent class for IDLStruct and IDLException
 *
 */


#ifndef ORBITCPP_TYPES_IDLCOMPOUND
#define ORBITCPP_TYPES_IDLCOMPOUND

#include "IDLScope.h"

// Structured types -----------------------------------------------------------
class IDLCompound : public IDLScope, public IDLScopeTypeImplementation
{

public:
	IDLCompound(string const &id,IDL_tree node,IDLScope *parentscope = NULL)
		: IDLScope(id,node,parentscope) {}

	void write_packing_decl (ostream &ostr,
				 Indent  &indent) const;

	void write_packing_impl (ostream &ostr,
				 Indent  &indent) const;

	virtual void write_member_decls (ostream &ostr,
					 Indent  &indent) const;
};

#endif //ORBITCPP_TYPES_IDLCOMPOUND
